import request from "@/utils/request";

/**
 * 登录
 * @param {object} loginForm
 * @returns
 */
export const loginApi = (loginForm) => {
  return request({
    method: "POST",
    url: "/sys/login",
    data: loginForm,
  });
};
/**
 * 用户基本信息(拿到用户ID)
 * @returns
 */
export const getUserProfileApi = () => {
  return request({
    method: "POST",
    url: "/sys/profile",
  });
};
/**
 * 员工基本信息
 * @param {*} id
 * @returns
 */
export const getEmployeeApi = (id) => {
  return request({
    method: "GET",
    url: `/sys/user/${id}`,
  });
};
